#pragma once
#include "ActionChecker.h"
#include "Action_Boomerang_R.h"
#include "Action_Boomerang_L.h"
#include "Action_Kamehameha.h"
#include "Action_Guard.h"

class ActionDetector
{
public:
	ActionDetector();
	~ActionDetector(void);

	void Detect(const JointInfo& joints, XnUInt32 userID, vector<ActionInfo*> &vec);
	void DrawEffect();
	void ResetAllAction();

private:
	ActionDetector(const ActionDetector&);

	enum { CHECKER_NUM = 4, CHECKER_RESTRICTED_UPPER = 1 };
	ActionChecker* _checkers[CHECKER_NUM];
	int _stopIndex;
};

